package com.gxwy.shenzhou;

import java.text.SimpleDateFormat;
import java.util.Date;

public class SelectShouXuFeiReciveMessage implements ShenZhouMessageHandler{

	public String processMessage(String message) throws Exception {
		SelectShouXuFeiRequest ssxfr=new SelectShouXuFeiRequest();
		ssxfr.parse(message);
		System.out.println(ssxfr);
		HeaderResponse hr=new HeaderResponse();
		hr.setJydm(ssxfr.getHeader().getGgjydm());
		Date date=new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		String nowDay=sdf.format(date);
		String day=nowDay.substring(0, 8);
		String time=nowDay.substring(8);
		hr.setJyrq(day);
		hr.setJysj(time);
		SelectShouXuFeiResponse ssx=new SelectShouXuFeiResponse();
		ssx.setHeader(hr);
		ssx.setServ_amt("5.00");
		ssx.setWeizhi("Success");
		String str=ssx.build();
		return str;
	}

}
